package com.zzz.thrift.gencode;

import com.sohu.thrift.generator.builder.ThriftFileBuilder;
import com.zzz.thrift.pojo.Data;
import com.zzz.thrift.pojo.Detail;
import com.zzz.thrift.service.TestService;
import org.junit.Test;

public class Gen {

	private ThriftFileBuilder fileBuilder = new ThriftFileBuilder();

	@Test
	public void toOutputstream() throws Exception {
		this.fileBuilder.buildToOutputStream(Data.class, System.out);
		this.fileBuilder.buildToOutputStream(Detail.class, System.out);
		this.fileBuilder.buildToOutputStream(TestService.class, System.out);
	}
}
